import com.erHuo.common.utils.Stringutils;
import org.apache.commons.codec.binary.Base64;

/**
 * Created by djx on 2017/5/2.
 */
public class test {


    public static void main(String args[]) throws Exception{
        String str="0123456789";
        System.out.println(Stringutils.md5Password(str));

    }

    public static void aVoid(){
        String a = "12345678";
        byte[] c = Base64.decodeBase64(a);
        System.out.println("加密后:"+c.toString());
        String bbb = Stringutils.reverse(c.toString());
        System.out.println("加密后调换位置："+bbb);

        String ccc = Stringutils.reverse(bbb);
        System.out.println("调换后："+ccc);
        String ddd = Base64.encodeBase64String(ccc.getBytes());
        System.out.println("调换后解密："+ddd);
    }
}
